﻿namespace CrumbleLibrary
{
    /// <summary>
    /// The filter parameter item.
    /// </summary>
    public class FilterParameterItem
    {
        public FilterParameterItem()
        {
        }

        public FilterParameterItem(HelperLibrary.FilterParameterType type, string name, object value)
        {
            this.Name = name;
            this.Type = type;
            this.Value = value;
        }

        /// <summary>
        /// Gets or sets Identifiername of the Parameter.
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// Gets or sets the The ParameterType based on Enumerator.
        /// </summary>
        public HelperLibrary.FilterParameterType Type { get; set; }

        /// <summary>
        /// Gets or sets Value as object: usually MsSqlParameter or String.
        /// </summary>
        public object Value { get; set; }
    }
}
